<template>
</template>

<script>
	import { util } from '/common/util.js';
	export default {
		  data() {
			return {
			  id:0,
			}
		  },
		  onLoad(opt) {
			this.id = opt.id;
			this.getList();
		  },
		  methods: {
			async getList(){
				const data = await util.request({
					url:'/order/tradeno',
					data:{id:this.id}
				});
				if(data.code == '200'){
					uni.redirectTo({
						url:"/pages/order/order?id="+data.data,
					});
				}
			}
		}
	}
	
</script>

<style>
</style>